<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>Insert title here</title>
		<style type="text/css">
			#d1{
				width:100%;
				height:50px;
				background-color: green;
				/* 固定定位 脱离文档流 */
				position:fixed;
			}
			#d2{
				width:50px;
				height:200px;
				background-color: red;
				position:fixed;
				right:20px;
				top:200px;
				
			}
		</style>
	</head>
	<body>
		<div id="d1">div1</div>
		<div id="d2">div2</div>
		<img src="../imgs/1.jpg">
	</body>
</html>